package ResponsibilityChain;


/**
 * @author duanzhizhou
 * @date 2024/11/5
 */
public class client {
    
    public static void main(String[] args) {
        Manager manager = new CommonManager("精力");
        Manager director = new Director("综检");
        Manager GM = new GeneralManager("粽敬礼");
        manager.setSuccesor(director);
        director.setSuccesor(GM);
        manager.handle(new BizRequest("请假", "小菜请假", 3));
        manager.handle(new BizRequest("加薪", "小菜加薪", 5000));
        manager.handle(new BizRequest("加薪", "小菜加薪", 10000));
    }
}
